const express = require("express")
const app = express()
app.all("/server",(request,response)=>{
    response.setHeader("Access-Control-Allow-Origin","*")
    response.setHeader("Access-Control-Allow-Headers","*")
    const obj = {
        name:"211122"
    }
    // setTimeout(function(){
    //     response.send(JSON.stringify(request))
    // },3000)
    // response.status(200).send(JSON.stringify(obj))
    response.status(200).send({"name":111})
})
app.listen(8001,()=>{
    console.log("8001服务");
})
